xen/arm: p2m: Don't need to restore the state for an idle vCPU.
authorJulien Grall <julien.grall@arm.com>
Thu, 28 Jul 2016 14:20:15 +0000 (15:20 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 29 Jul 2016 00:42:21 +0000 (17:42 -0700)
commitcfd7f424ebe40a5efa49efddd88859b0fb1d5abe
tree8950ac51b6abb5c40baa38d3bd1f139aabd55f76
parent46ac5642794f38bcdf9a1892b439776261706dd7
xen/arm: p2m: Don't need to restore the state for an idle vCPU.

The function p2m_restore_state could be called with an idle vCPU in
arguments (when called by construct_dom0). However, we will never return
to EL0/EL1 in this case, so it is not necessary to restore the p2m
registers.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c